package com.naizhuai.ui.entity.management;


import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;
import com.naizhuai.Model.db.user.PersonUserBean;

import java.io.Serializable;
import java.util.List;

/**
 * 团队类
 * 分为
 * Created by code_han on 2018/2/1.
 */

public class DepartmentBean implements Serializable,IPickerViewData {

    public static final String DEPARTMENT_ID_KEY="department_id_key";
    public static final String DEPARTMENT_KEY="department_key";

    @SerializedName("departmentId")
    private String departmentId;

    @SerializedName("departmentName")
    private String departmentName;

    private String departmentLogUrl;
    //队伍类型（私人临时组队，公司架构组织）
    private int departmentType;
    //小组所在的公司的id值
    private String companyId;
    //部门人数
    @SerializedName("departmentCount")
    private int departmentCount;

    @SerializedName("departmentUserList")
    private List<PersonUserBean> departmentMember;

    private String managerName;

    private String managerThumbUrl;

    private PersonUserBean departmentManager;

    public DepartmentBean(String departmentId, String departmentName, String departmentLogUrl, int departmentType, List<PersonUserBean> departmentMember, PersonUserBean departmentManager) {
        this.departmentId = departmentId;
        this.departmentName = departmentName;
        this.departmentLogUrl = departmentLogUrl;
        this.departmentType = departmentType;
        this.departmentMember = departmentMember;
        this.departmentManager = departmentManager;
    }

    public DepartmentBean(String departmentName, int departmentCount) {
        this.departmentName = departmentName;
        this.departmentCount = departmentCount;
    }

    public DepartmentBean() {}

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public String getManagerThumbUrl() {
        return managerThumbUrl;
    }

    public void setManagerThumbUrl(String managerThumbUrl) {
        this.managerThumbUrl = managerThumbUrl;
    }

    public DepartmentBean(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getDepartmentLogUrl() {
        return departmentLogUrl;
    }

    public void setDepartmentLogUrl(String departmentLogUrl) {
        this.departmentLogUrl = departmentLogUrl;
    }

    public int getDepartmentType() {
        return departmentType;
    }

    public void setDepartmentType(int departmentType) {
        this.departmentType = departmentType;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public int getDepartmentCount() {
        return departmentCount;
    }

    public void setDepartmentCount(int departmentCount) {
        this.departmentCount = departmentCount;
    }

    public List<PersonUserBean> getDepartmentMember() {
        return departmentMember;
    }

    public void setDepartmentMember(List<PersonUserBean> departmentMember) {
        this.departmentMember = departmentMember;
    }

    public PersonUserBean getDepartmentManager() {
        return departmentManager;
    }

    public void setDepartmentManager(PersonUserBean departmentManager) {
        this.departmentManager = departmentManager;
    }

    @Override
    public String toString() {
        return getDepartmentId();
    }

    @Override
    public String getPickerViewText() {
        return departmentName;
    }
}
